package com.mt.channel.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import com.mt.channel.entity.ChannelCustomerEntity;
import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;

@FeignClient(name = "channelService")
public interface ChannelCustomerFeign {

    @GetMapping("/channelCustomer/findList/{page}/{size}")
    ServiceResult<List<ChannelCustomerEntity>> findList(@RequestParam Map<String, Object> params,
            @PathVariable(value = "page") Integer page, @PathVariable(value = "size") Integer size);

    @GetMapping("/channelCustomer/findInfo")
    ServiceResult<ChannelCustomerEntity> findInfo(@RequestParam("params") Map<String, Object> params);

    @PostMapping("/channelCustomer/doInsert")
    ServiceResult<Integer> doInsert(@RequestBody ChannelCustomerEntity channelCustomerEntity);

    @PostMapping("/channelCustomer/doUpdate")
    ServiceResult<Integer> doUpdate(@RequestBody ChannelCustomerEntity channelCustomerEntity);

}
